package vip.web3.admin.sys.vo.biz.export;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import vip.web3.admin.common.export.BigDecimalToStr;
import vip.web3.admin.common.export.WalletTypeConverter;
import vip.web3.common.utils.DateUtils;

import java.math.BigDecimal;
import java.util.Date;


/**
 * @author lilei
 */
@Data
public class ExWalletVo {


    //===============================
    /**
     * 主键 ID
     */
    @ExcelProperty(value = "ID", index = 0)
    private Integer id;

    /**
     * 用户id
     */
    @ExcelProperty(value = "uid", index = 1)
    private Integer userId;
    /**
     * 手机,账号
     */
    @ExcelProperty(value = "手机账号", index = 2)
    private String mobile;

    /**
     * 资产类型 1 人民币, 2 USDT
     */
    @ExcelProperty(value = "资产参投类型", index = 3, converter = WalletTypeConverter.class)
    private Integer type;

    /**
     * 参投余额_人民币
     */
    @ExcelProperty(value = "参投人民币余额", index = 4, converter = BigDecimalToStr.class)
    private BigDecimal amountCny;
    /**
     * 参投余额_USDT
     */
    @ExcelProperty(value = "参投USDT余额", index = 5, converter = BigDecimalToStr.class)
    private BigDecimal amountUsdt;
    /**
     * 可提现 人民币余额
     */
    @ExcelProperty(value = "提现人民币余额", index = 6, converter = BigDecimalToStr.class)
    private BigDecimal withdrawCny;
    /**
     * 可提现 USDT 余额
     */
    @ExcelProperty(value = "提现USDT余额", index = 7, converter = BigDecimalToStr.class)
    private BigDecimal withdrawUsdt;
    /**
     * 版本号 乐观锁
     */
    @ExcelIgnore
    private Integer version;

    /**
     * 创建时间
     */
    @ExcelIgnore
    @ExcelProperty(value = "注册时间", index = 23)
    @ColumnWidth(25)
    @DateTimeFormat(DateUtils.DATE_TIME_PATTERN)
    private Date createDate;

    /**
     * 更新时间
     */
    @ExcelIgnore
    private Date updateDate;

}
